@charset "utf-8";
@import "reset";
$fontsize:40;
@function r($px) {
    @return $px/$fontsize * 1rem
}

* {
    margin: 0;
    padding: 0;
    list-style: none;
}

html,
body {
    width: 100%;
    height: 100%;
}

.web {
    width: 100%;
    height: 100%;
    position: relative;
    >header {
        width: 100%;
        height: r(86);
        position: absolute;
        top: 0;
        background: #f7f7f7;
        margin: 0 auto;
        border-bottom: r(1) solid #c1c1c1;
        padding: 0 r(20);
        .img{
            float: left;
            margin-top: r(20);
            width: r(22);
            height: r(37);
            img{
                width: 100%;
                height: 100%;
            }
        }
        .nav {
            width: r(400);
            height: r(58);
            line-height: r(58);
            border: r(2) solid #d62d31;
            border-radius: r(6);
            margin: 0 auto;
            font-size: 0;
            position: absolute;
            top: r(13);
            left: r(120);
            span {
                display: inline-block;
                width: r(198);
                height: r(55);
                text-align: center;
                a {
                    letter-spacing: r(3);
                    font-size: r(28);
                    color: #d62d31;
                    position: relative;
                }
            }
            span.active{
                text-align: left;
                background: #d62d31;
                a {
                    padding-left: r(14);
                    color: #ffffff;
                }
                a:after{
                    content: "";
                    position: absolute;
                    right: r(-20);
                    top: r(13);
                    width: r(12);
                    height: r(12);
                    border-radius: 50%;
                    background: #ffffff;
                }
            }
            span:nth-child(2) {
                border-right: 0;
            }
        }
    }
    >section {
        width: 100%;
        position: absolute;
        top: r(86);
        bottom: r(0);
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        .news{
            padding: r(20);
            height: r(160);
            border-bottom: 1px solid #e3e3e3;
            .avatar{
                float: left;
                width: r(120);
                height: r(120);
                img{
                    border-radius: 50%;
                    border: 1px solid #e3e3e3;
                    width: r(118);
                    height: r(118);
                }
            }
            .msg{
                float: left;
                width: r(120);
                height: r(120);
                img:first-child{
                    border-radius: 50%;
                    border: 1px solid #e3e3e3;
                    width: r(120);
                    height: r(120);
                    position: relative;
                }
                img:last-child{
                    width: r(32);
                    height: r(34);
                    position: absolute;
                    top: r(18);
                    left: r(128);
                }
            }
            .time{
                float: right;
                p{
                    font-size: r(24);
                    color: #666666;
                }
            }
            .text{
                margin-left: r(140);
                h5{
                    margin-top: r(9);
                    font-size: r(26);
                    color: #333333;
                }
                p{
                    margin-top: r(20);
                    font-size: r(24);
                    color: #666666;
                }
            }
        }
        .foot{
            width: 100%;
            height: r(484);
            background: #f3f4f6;
        }
    }
}